@import "./variables.scss";

.el-range-editor--medium .el-range-input {
  background: red;
}

.select-sea {
  .el-button--mini {
    padding: 5px 10px;
  }

  .el-input-group__append {
    border: none;
    background: rgb(20, 52, 52);
  }
}


.overflowhidden {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-dialog-class {
  .el-dialog__header {
    padding: 0;
    margin: 0;
  }
  .el-dialog__body {
    margin: 0;
    padding: 0;
  }
}

/*
// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-table {
  background: transparent;
  color: #fff;
  table {
    width: 100%;
    background: transparent;
    tr {
      width: 100%;
      background: rgba(15, 47, 48, 0.1);
      td {
        padding: 5px 0;
      }
    }
    .hover-row td {
      background-color: rgba(51, 65, 78, 0.5);
    }
  }
}

.el-table--enable-row-hover .el-table__body tr:hover > td {
  background-color: $hoverColor;
}

.el-table--group::after, .el-table--border::after, .el-table::before{
  background-color: $nodeBorderColor;
}

// 公共表单样式
.com-form {
  .el-form-item {
    margin: 14px;
    label {
      color: #fff;
    }
    .el-input__inner,
    .el-range-input,
    .el-range-separator {
      background: transparent;
      color: #fff;
    }
  }
}

// 公共分页样式
.com-pagination {
  margin: 10px 0;
  background: transparent;
  button.btn-prev,
  button.btn-next,
  li {
    background: transparent;
    color: #fff;
  }
  .el-input__inner {
    background: transparent;
    color: #fff;
    &:hover {
      border-color: $daihoverColor;
    }
  }
  .el-pagination__sizes .el-input .el-input__inner:hover {
    border-color: $daihoverColor;
  }
  .el-pagination__total,
  .el-pagination__jump {
    color: #fff;
  }
  li.active,
  .el-pager li:hover {
    color: $daihoverColor;
  }

  .pagination-container{
    background-color: transparent !important;
    padding: 0 !important;
    .el-pagination__total{
      border-color: $nodeBorderColor;
    }
    .el-pagination {
      background: transparent;
      color: #fff;
    }

  }
}

// 公共查询按钮样式
.com-select {
  background: rgba(0, 150, 136, 0.3);
  border: none;
  box-shadow: 0 0 5px #08bfae;
  &.el-button--primary:hover,
  &.el-button--primary:focus {
    border: none;
    box-shadow: 0 0 5px $daihoverColor;
    background: rgba(4, 175, 158, 0.4);
  }
}

//公共对话框样式
.el-message-box {
  background: $nodeLightBk;
  border: none;
  box-shadow: 0 0 10px $boxShadow;
  background: rgba(0, 150, 136, 0.3);
  border: none;
  .el-message-box__title,
  .el-message-box__message {
    color: #fff;
  }
  box-shadow: 0 0 5px #08bfae;
  .el-button {
    background: rgba(0, 150, 136, 0.3);
    border: none;
    box-shadow: 0 0 5px #08bfae;
    color: #b5b5b5;
    &:hover,
    &:focus {
      border: none;
      box-shadow: 0 0 5px $daihoverColor;
      color: $daihoverColor;
      background: rgba(4, 175, 158, 0.4);
    }
  }
  .el-button--primary {
    color: #fff;
  }
}

// 公共抽屉样式
.com-drawer{
  .el-drawer{
    background: $drawBk;
    overflow: auto;
  }
}*/

/*.el-card{
  background-color: transparent;
  border-color: $nodeBorderColor ;
  color: $fontWhiteColor;
  .el-card__header{
    background-color: transparent;
    border-color: $nodeBorderColor ;
  }
}

.el-tree{
  background-color: transparent;
  color: $fontWhiteColor;
  .el-tree-node{
    cursor: default;
  }
  .el-tree-node__content{
    &:hover{
      background-color: $hoverColor !important;
    }
  }
}*/

.pagination-container {
  background-color: transparent !important;
  margin-top: 0 !important;
}

//.el-button--primary{
//  color: $fontWhiteColor;
//}

// 修改滚动条颜色
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  overflow: auto;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(233, 233, 233, 0.7);
  min-height: 25px;
  min-width: 25px;
  border: 1px solid transparent;
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background-color: rgba(233, 233, 233, 0.2);
  border: 1px solid transparent;
}
